﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.RbacData.Domain.Traceabilitys
{
   /// <summary>
   /// 屠宰信息
   /// </summary>
    public  class SlaughterModel
    {

        /// <summary>
        /// 屠宰编号
        /// </summary>
        [Key]
        public int SlaughterId { get; set; }

        /// <summary>
        /// 屠宰批次
        /// </summary>
        public string Batch { get; set; } = null!;


        /// <summary>
        /// 到厂均重（公斤）
        /// </summary>
        public int ArrivalAverageWeight { get; set; }

        /// <summary>
        /// 到厂时间
        /// </summary>
        public DateTime ArrivalTime { get; set; }

        /// <summary>
        /// 屠宰时间
        /// </summary>

        public DateTime SlaughterTime { get; set; }

        /// <summary>
        /// 溯源编号
        /// </summary>
        public int ProductId { get; set; }

       /// <summary>
       /// 创建时间
       /// </summary>
        public  DateTime  Creatime { get; set; }= DateTime.Now;
    }
}
